package com.kxr.day09.webmagic.spider;

import com.kxr.day09.webmagic.pageProcessor.XLNBAPageProcessor;
import com.kxr.day09.webmagic.pipeline.NewsPipeline;
import us.codecraft.webmagic.Spider;

public class NBASpider {
    public static void main(String[] args) {
        Spider.create(new XLNBAPageProcessor())
                .addUrl("https://sports.sina.com.cn/nba/")
                .addPipeline(new NewsPipeline())
                .run();
    }
}
